<!--
 * @Description: 
 * @Version: 2.0
 * @Autor: wsh
 * @Date: 2023-06-20 10:13:27
 * @LastEditors: wsh
 * @LastEditTime: 2023-06-20 10:19:33
-->
<template>
  <BaseContainer>
    <aplid-base-crud ref="crud" class="w-100" v-bind="baseConfig">
      <template #addDialog="{row ,show}">
        <AddPart
          @refresh="handleRefresh" 
          :api="baseConfig.api" 
          :key="show" 
          :nowRowData="row">
        </AddPart>
      </template>
      <template #detailDialog="{row}">
        <AssessmentRecords :isView="true" :taskId="row.id"></AssessmentRecords>
      </template>
      
    </aplid-base-crud>
  </BaseContainer>
</template>

<script setup lang="ts">
import { ref } from 'vue'
import { baseConfig } from './config'
import AddPart from './addObject/index.vue'
import AssessmentRecords from '@/views/oneStopOffice/assessmentRecords/index.vue'


const crud = ref()
const handleRefresh = () =>{
  nextTick(() => {
    crud.value.refreshChange()
  })
}

</script>

<style scoped></style>